package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;

//公用类型
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tbc_config")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TbcConfigModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;//名称
    private Integer fatherId;//父级ID
    private Integer conLevel;//级别
    private Integer conType;//1名族2乡镇村组3工种9户籍
    private String workType;//工种分类
    private String industry;//
    @TableField(exist = false)
    private List<TbcConfigModel> child;
    @TableField(exist = false)
    private String industryText;
    @TableField(exist = false)
    private List<TbcConfigModel> children;
    @TableField(exist = false)
    private String fatherIdText;//父级ID文字
}
